<!DOCTYPE html>
<html>
    <head>
        <%- include('head.html') %>
    </head>
    <body>
        <header>
          <%- include('header.html') %>
        </header>
        <div class="page-content">
            <section class="container">
                <div class="row">
                    <div class="col s12">
                        <div class="row">
                            <% list.forEach(function(blog, index){ %>
                            <div class="col s3 m4 l6">
                                <div class="card">
                                    <div class="card-image">
                                        <img src="<%= blog.thumb %>">
                                        <span class="card-title"><%= blog.title %></span>
                                    </div>
                                    <div class="card-content">
                                        <p><%= blog.abstract %></p>
                                    </div>
                                    <div class="card-action">
                                        <a href="/blog/<%= blog.id %>">查看详情</a>
                                    </div>
                                </div>
                            </div>
                            <% }) %>
                        </div>
                    </div>
                </div>
            </section>
        </div>
        <footer>
            <%- include('footer.html') %>
        </footer>
        <%- include('foot.html') %>
    </body>
</html>
